package com.finger.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.finger.eduservice.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.finger.eduservice.entity.frontvo.CourseWebVo;
import com.finger.eduservice.entity.frontvo.QueryCourseFront;
import com.finger.eduservice.entity.vo.CourseInfoVO;
import com.finger.eduservice.entity.vo.CoursePublishVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author testjava
 * @since 2022-01-06
 */
public interface EduCourseService extends IService<EduCourse> {

    String addCourseAndDescription(CourseInfoVO courseInfoVO);

    CourseInfoVO getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfoVO courseInfoVO);

    CoursePublishVO getCoursePublish(String courseId);

    void publishCourse(String courseId);

    void removeCourseById(String courseId);

    List<EduCourse> selectIndexCourseList();

    List<EduCourse> getCourseInfoByTeacherId(String id);

    Map<String, Object> getCourseListCondition(Page<EduCourse> eduCoursePage, QueryCourseFront queryCourseFront);

    CourseWebVo getCourseWebVoById(String courseId);

    void updateCourseBuyCount(String courseId);
}
